package com.googlecode.curvedmetromaps.core.model;

public class MetroEdge {
	public int			id;
	public MetroStation	src;
	public MetroStation	dst;
	// Control point for the Bézier curve.
	public float		cpX, cpY;

	public MetroEdge(MetroStation src, MetroStation dst) {
		this.src = src;
		this.dst = dst;
		cpX = (this.src.x + this.dst.x) / 2;
		cpY = (this.src.y + this.dst.y) / 2;
	}
	
	MetroStation getM1() {
		return src;
	}
	
	MetroStation getM2() {
		return dst;
	}
}
